// import Cookies from 'js-cookie';
export { default as useDefStore } from './modules/defStore'
export { default as useLayoutStore } from './modules/layoutStore'
export { default as useGlobalStore } from './modules/globalStore'
export { default as useDesignStore } from './modules/designStore'
export { default as useUserStore } from './modules/userStore'
export { default as useStatementStore } from './modules/statement'
export * from './modules/pageAjaxStore'
export * from './modules/keepPageStore'
export * from './modules/notificationStore'
export { default as useTanpanchaStore } from './modules/tanpancha'
export { default as useEquipmentStore, useEquipmentStoreHook } from './modules/equipmentStore'

// #region 定制存储
// export const cookiesStorageDefaultConfig: Cookies.CookieAttributes =
//   {
//     expires: 3
//   };
// export interface CookiesStorage extends Storage {
//   setItem: (
//     key: string,
//     value: string,
//     options?: Cookies.CookieAttributes
//   ) => string | undefined;
//   getItem: (key: string) => string | null;
//   removeItem: (key: string) => void;
// }
// /**定制存储 */
// export const cookiesStorage: Partial<CookiesStorage> = {
//   setItem(
//     key,
//     value,
//     options = cookiesStorageDefaultConfig
//   ) {
//     return Cookies.set(key, value, options); // 设置有效期 3 天，不设置默认同 sessionStorage 有效期一致
//   },
//   getItem(key) {
//     // return Cookies.get(key)!;
//     return localStorage.getItem(key)!;
//   },
//   removeItem(key) {
//     // Cookies.remove(key);
//     localStorage.removeItem(key);
//   }
// };

// #endregion
